package top.sssd.auth.model.permission.dto;

import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
@ApiModel(value = "Permission对象", description = "权限表")
public class PermissionDto {
    //权限ID
    @ApiModelProperty(value = "权限ID")
    private Long id;
    //权限名称
    @ApiModelProperty(value = "权限名称")
    private String name;
    //权限编码
    @ApiModelProperty(value = "权限编码")
    private String code;
    //权限类型(1:菜单,2:按钮,3:API)
    @ApiModelProperty(value = "权限类型(1:菜单,2:按钮,3:API)")
    private Boolean type;
    //路由地址
    @ApiModelProperty(value = "路由地址")
    private String path;
    //资源路径(菜单URL/API路径)
    @ApiModelProperty(value = "资源路径(菜单URL/API路径)")
    private String url;
    //权限标识
    @ApiModelProperty(value = "权限标识")
    private String perms;
    //HTTP方法(GET,POST等)
    @ApiModelProperty(value = "HTTP方法(GET,POST等)")
    private String method;
    //父权限ID
    @ApiModelProperty(value = "父权限ID")
    private Long parentId;
    //排序号
    @ApiModelProperty(value = "排序号")
    private Integer orderNum;
    //图标(菜单使用)
    @ApiModelProperty(value = "图标(菜单使用)")
    private String icon;
    //状态(0:禁用,1:启用)
    @ApiModelProperty(value = "状态(0:禁用,1:启用)")
    private Boolean status;
}
